/* pages/orderConfirm/orderConfirm.wxss */

page {
    background: #f5f6f8;
}

.container {
    padding: 30rpx;
}

.product-info-container {
    width: 610rpx;
    background: #ffffff;
    border-radius: 20rpx;
    padding: 30rpx 40rpx;
    display: flex;
    flex-direction: column;

    .product-info-wrapper {
        display: flex;

        .undone {
            font-size: 26rpx;
            font-weight: 600;
            color: var(--primaryColor);
        }

        .done {
            font-size: 26rpx;
            font-weight: 600;
            color: #828384;
        }

        .product-info-content {
            margin-left: 30rpx;
            display: flex;
            flex: 1;
            flex-direction: column;
            justify-content: space-between;

            .product-info-title {
                font-size: 30rpx;
                font-weight: 600;
                color: #262626;
                line-height: 30rpx;
            }

            .product-info-desc {
                text {
                    margin-top: 23rpx;
                    display: block;
                    font-size: 24rpx;
                    font-family: PingFang SC;
                    font-weight: 400;
                    color: #828384;
                    line-height: 24rpx;
                }
            }
        }

        image {
            width: 118rpx;
            height: 154rpx;
            padding: 6rpx;
            border: 1rpx solid #e4e6e7;
        }
    }

    .product-info-price {
        align-self: flex-end;

        text {
            font-size: 20rpx;
            font-family: PingFang SC;
            font-weight: 600;
            color: #262626;
            line-height: 20rpx;
        }
    }

    .product-info-button-wrapper {
        margin-top: 10px;
        padding-top: 10px;
        display: flex;
        border-top: solid 1px #eee;
        flex-direction: row;
        justify-content: space-between;

        button {
            flex: 1;
            padding: 30rpx 0rpx;
            line-height: 30rpx;
            border-radius: 20rpx;
            font-size: 30rpx;
            font-weight: 600;
        }

        .button-1 {
            color: var(--primaryColor);
            border: solid 1px var(--primaryColor);
            background-color: white;
        }

        .button-2 {
            background-color: var(--primaryColor);
            color: white;
        }
    }
}

.desc-wrapper {
    margin-top: 30rpx;
    background: #ffffff;
    border-radius: 20rpx;
    padding: 30rpx 20rpx;

    .desc-tile {
        padding: 20rpx;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .desc-tile-title {
            font-size: 28rpx;
            color: #828384;
            line-height: 28rpx;
        }

        .desc-tile-content {
            font-size: 28rpx;
            line-height: 34rpx;
            text-align: end;
            flex: 1;
        }

        .desc-tile-trail {
            font-size: 12px;
            border-left: #ccc solid 1px;
            padding-left: 5px;
            color: #666;
            margin-left: 5px;
            line-height: 15px;
        }
    }
}

.order-addr-wrapper {
    margin-top: 20rpx;
    width: 610rpx;
    height: 220rpx;
    padding: 0rpx 40rpx;
    background: #ffffff;
    border-radius: 20rpx;

    display: flex;
    flex-direction: column;
    justify-content: center;

    .addr-top {
        display: flex;
        align-items: center;

        image {
            height: 35rpx;
            width: 35rpx;
        }

        text {
            margin-left: 17rpx;
            flex: 1;
            font-size: 28rpx;
            font-weight: 600;
            color: #262626;
            line-height: 28rpx;
        }

        .addr-text {
            font-size: 24rpx;
            font-weight: 400;
            color: #828384;
            line-height: 24rpx;
        }

        .arrow-right {
            height: 24rpx;
            width: 13rpx;
        }
    }

    .divider {
        width: 610rpx;
        height: 1px;
        background: #e4e6e7;
        border-radius: 1px;
        margin-top: 40rpx;
        margin-bottom: 20rpx;
    }

    .addr-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;

        text {
            font-size: 24rpx;
            font-weight: 400;
            color: #828384;
            line-height: 24rpx;
        }

        button {
            width: 240rpx;
            height: 66rpx;
            background: #56c86a;
            border-radius: 10rpx;
            padding: 0;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;

            text {
                margin-left: 11rpx;
                font-size: 24rpx;
                font-weight: 600;
                color: #ffffff;
            }

            image {
                height: 31rpx;
                width: 36rpx;
            }
        }
    }
}

.order-phone-wrapper {
    margin-top: 20rpx;
    width: 610rpx;
    height: 120rpx;
    background: #ffffff;
    border-radius: 20rpx;
    padding: 0 40rpx;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: end;

    font-size: 28rpx;
    font-weight: 600;
    color: #262626;

    .order-phone-title {
        font-size: 28rpx;
        font-weight: 400;
        color: #262626;
    }
}

.order-remark-container {
    padding: 40rpx;
    margin-top: 20rpx;
    width: 610rpx;
    background: #ffffff;
    border-radius: 20rpx;
    display: flex;
    flex-direction: column;

    text {
        font-size: 28rpx;
        font-weight: 400;
        color: #262626;
        line-height: 28rpx;
    }

    textarea {
        margin-top: 39rpx;
        font-size: 28rpx;
        font-weight: 500;
    }
}

.placeholder {
    font-size: 28rpx;
    font-weight: 400;
    color: #cccccc;
}

.bottom-bar-wrapper {
    position: fixed;
    bottom: 0;
    width: 630rpx;
    padding-left: 60rpx;
    padding-right: 60rpx;
    height: 170rpx;
    background: #ffffff;
    padding-bottom: env(safe-area-inset-bottom);
    /* 兼容 iOS < 11.2 */
    padding-bottom: constant(safe-area-inset-bottom);

    display: flex;
    justify-content: space-between;
    align-items: center;

    .total-price-1 {
        font-size: 24rpx;
        font-weight: 600;
        color: #262626;
        line-height: 24rpx;
    }

    .total-price-2 {
        font-size: 24rpx;
        font-weight: 600;
        color: #f44b44;
        line-height: 24rpx;
    }

    .total-price-3 {
        font-size: 40rpx;
        font-weight: 600;
        color: #f44b44;
        line-height: 40rpx;
    }

    .contact-button {
        border-radius: 10rpx;
        background-color: white;
        border: #cccccc 1px solid;
        font-size: 25rpx;
        font-weight: normal;
        width: fit-content;
        padding: 5rpx 20rpx;
        margin: 0;
    }

    .button-wrapper {
        display: flex;
    }

    .pay-button {
        width: fit-content;
        background: #555df5;
        border-radius: 10rpx;
        margin-left: 20rpx;
        font-size: 25rpx;
        font-weight: 600;
        color: #ffffff;
        padding: 5rpx 20rpx;
    }
}

.customer-service-wrapper {
    margin-top: 30px;
    z-index: 100;
    position: relative;
    margin-left: 600rpx;

    .contact-button {
        border-radius: 200rpx;
        background-color: transparent;
        border: 2px solid var(--primaryColor);
        font-weight: normal;
        width: 50px;
        height: 50px;
        line-height: 50px;
        box-shadow: 2px 2px 5px 0 #3d45e690;
    }
}
